#数据库配置
#MongoDB的配置信息
from pymongo import MongoClient
MMMMM = MongoClient("127.0.0.1",27017)
MONGODB = MMMMM["VisionDB"]


# Response Return
RET={
	"CODE":0,
	"MSG":"",
	"DATA":{}
}

# 目录配置
COVER_PATH = "Cover"
MUSIC_PATH = "Music"
QRCODE_PATH = "Qrcode"
CHAT_PATH = "Chat"


# 联图二维码
LT_URL = "http://qr.topscan.com/api.php?text=%s"

# 百度AI配置
from aip import AipNlp,AipSpeech
APP_ID = '16436279'
API_KEY = 'Y4A4TuCxAzrx6haB8PMuQRCP'
SECRET_KEY = 'TYGXDfVQvC4degzeZvZnYhAfx5ubq1y7'

SPEECH_CLIENT = AipSpeech(APP_ID, API_KEY, SECRET_KEY)
NLP_CLIENT = AipNlp(APP_ID, API_KEY, SECRET_KEY)

VOICE = {
	"spd": 4,
    'vol': 10,
	"pit": 8,
	"per": 4
}

# 图灵机器人配置
TL_URL = "http://openapi.tuling123.com/openapi/api/v2"
TL_DATA={
    "perception": {
        "inputText": {
            "text": "今天天气怎么样"
        }
    },
    "userInfo": {
        "apiKey": "9839d499aa73422382b5cbde26b044c6",
        "userId": "123" # 用唯一标识
    }
}



